# Maintainer: Alex Raschi <raschi.alex@gmail.com>
pkgname=chocolate-doom
pkgver=3.0.1
pkgrel=0
pkgdesc="Portable release of Doom, Heretic, Hexen, and Strife"
url="https://www.chocolate-doom.org"
arch="all"
license="GPL-2.0-or-later"
makedepends="sdl2-dev sdl2_net-dev sdl2_mixer-dev libpng-dev
             libsamplerate-dev mesa-dev"
subpackages="$pkgname-doc"
options="!check" # no test suite
source="https://www.chocolate-doom.org/downloads/$pkgver/$pkgname-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="bec5daf5b26a8dd238780cb4e0c23ffc59b97825d323aa67bb6a3279cd243c18c03e899c4cb4b3106ac187330c6421915a14a6a7c0d34cb0ee75d6f29f9dc905  chocolate-doom-3.0.1.tar.gz"
